package org.wqp.springboot.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.wqp.springboot.dao.PersonDao;
import org.wqp.springboot.entity.Person;
import org.wqp.springboot.service.PersonService;

@Service
public class PersonServiceImpl implements PersonService {
    @Autowired
    private PersonDao personDao;

    @Override
    public Person findByName(String personname) {
        return personDao.findByName(personname);
    }

    @Override
    public void modifyName(String personname, int id) {
        personDao.modifyName(personname, id);
    }
}
